/*----------------------------------------------------------------------------
| Project: XCP_Delivery
|
|  Description:   Implementation of the XCP Protocol Layer
|                 XCP V1.0 slave device driver
|                 Basic Version
|
|-----------------------------------------------------------------------------
| Copyright (c) by Vector Informatik GmbH.  All rights reserved.
----------------------------------------------------------------------------*/

#if !defined(__XCP_CFG_H__)
#define __XCP_CFG_H__

/*----------------------------------------------------------------------------*/
/* Project specific includes */
#include "main.h"
#include "xcp_if.h"
#include <stdio.h>

typedef unsigned char  vuint8;
typedef signed char    vsint8;   
typedef unsigned short vuint16;
typedef signed short   vsint16;
typedef unsigned long  vuint32; 
typedef signed long    vsint32;

/* Byte order */
#define XCP_CPUTYPE_LITTLEENDIAN /* Intel */ 

/* Enable transmission of event messages */
#define XCP_ENABLE_SEND_EVENT

/* XCP Calibration Parameters */
#define XCP_ENABLE_CALIBRATION

/* Enable memory checksum */
#define XCP_ENABLE_CHECKSUM
#define kXcpChecksumMethod XCP_CHECKSUM_TYPE_ADD14
                   
#define XCP_ENABLE_DAQ_OVERRUN_INDICATION


/*****************optional config*******************/ 
// support for CMD 0XDA (GET_DAQ_PROCESSOR_INFO), the max event count
#define kXcpMaxEvent 2


// support debug info print,default disable
// #define XCP_ENABLE_TESTMODE
// #define ApplXcpPrint printf

/*****************optional config*******************/ 

#define ApplXcpInit  CalData_Copy
#define ApplXcpGetPointer ExtAddr2Addr

#endif /* __XCP_CFG_H__ */
